package com.gzhryc.event;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.gzhryc.event.dao.db.TimeTask;

public abstract class AbsTimeTaskHandler implements Job{

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		Object task = context.get(TimeTask.class.getSimpleName());
		if(task != null){
			execute((TimeTask)task);
		}
	}
	
	public abstract void execute(TimeTask task);
}
